import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const List = () => import('views/list/List')
const Detail = () => import('views/detail/Detail')

const routes = [
  {
    path: '/',
    redirect: '/list'
  },
  {
    path: '/list',
    component: List
  },
  {
    path: '/detail',
    component: Detail
  }
]

export default new Router({
  routes,
  mode: 'history'
})